package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Letter;
import cn.wolfcode.trip.base.domain.TravelComment;
import cn.wolfcode.trip.base.query.LikeQueryObject;

import java.util.List;

public interface ITravelCommentService {
    List<TravelComment> queryByTravelId(Long travelId);

    void save(TravelComment travelComment);

    void updateState(Long userId);

    /**
     * 根据id查评论详情
     * @param travelCommentId
     * @return
     */
    TravelComment getByTravelCommentId(Long travelCommentId);

    Integer getReplyCount(Long travelCommentId);

    void updateReplyCount(int replyCount, Long travelCommentId);

    Integer countComment(LikeQueryObject qo);

    Integer countOthersComment(LikeQueryObject qo);

    Object maxComment(LikeQueryObject qo);
}
